package com.qyhl.school.school.reporter.sign;


import com.qyhl.webtv.commonlib.entity.UpTokenBean;

public class SchoolReportSignPresenter implements SchoolReportSignContract.SchoolReportSignPresenter {
    private SchoolReportSignContract.SchoolReportSignView mView;
    private SchoolReportSignModel mModel;

    public SchoolReportSignPresenter(SchoolReportSignContract.SchoolReportSignView mView) {
        this.mView = mView;
        this.mModel = new SchoolReportSignModel(this);
    }


    @Override
    public void doSign(String username, String realName, int sex, String phoneNum, int age, int schoolId, String schoolName, String logo) {
        mModel.doSign(username, realName, sex, phoneNum, age, schoolId,schoolName, logo);
    }

    @Override
    public void getToken(boolean isUpload) {
        mModel.getToken(isUpload);
    }

    @Override
    public void signResult(boolean isSuccess, String msg) {
        mView.signResult(isSuccess, msg);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data, isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
        mView.getTokenError(isUpload);
    }
}
